package com.util;

public class WeatherUtil {
	public static String getWeatherImg(int img){
		String weaImg="";
		switch (img) {
		case 0: weaImg="qing.png";break;
		case 1: weaImg="duoyun.png";break;
		case 2: weaImg="ying.png";break;
		//小雨
		case 7:
		case 21:
		case 3: weaImg="xiaoyu.png";break;
		//中雨
		case 8:
		case 22: weaImg="zhongyu.png";break;
		//中雨
		case 9:
		case 10:
		case 24:
		case 23: weaImg="dayu.png";break;
		//暴雨
		case 11:
		case 12:
		case 25: weaImg="baoyu.png";break;
		//雷阵雨
		case 4:
		case 5: weaImg="leizhenyu.png";break;
		//雨夹雪
		case 6: weaImg="yujiaxue.png";break;
		//下雪
		case 13:
		case 14:
		case 15:
		case 16:
		case 17:
		case 26:
		case 27:
		case 28:weaImg="xiaoxue.png";break;
		//雾
		case 18:weaImg="wu.png";break;
		//冰雹
		case 19:weaImg="bingbao.png";break;
		default:
			weaImg="other.png";
			break;
		}
		return weaImg;
	}
}
